FILL

Syntax: FILL [#channel,] boolean
Location: QL ROM

This command switches Fill mode on and off.

If the Fill mode is on (after FILL 1), all points in the given window channel (default #1) that have the same vertical co-ordinate are connected by a line in th filled correctly. This means that figures must only contain two points on each horizontal row of pixels. The fill mode is de-activated by FILL 0. 

Example:

100 DEFine PROCedure SQUARE (x,y,size,angle)   
110  LOCal n: POINT x,y   
120  TURNTO angle: PENDOWN: FILL 1   
130  FOR n=1 TO 4: MOVE size: TURN 270   
140  PENUP: FILL 0   
150 END DEFine SQUARE

NOTE:
FILL only affects those graphic commands which use relative co-ordinates, ie. which are influenced by SCALE. Commands which operate in absolute window or screen co-ordinates will not invoke filling. 

CROSS-REFERENCE:
The paint colour of FILL is specified by INK.
